{% extends "base.html" %}

{% block title %}Relatórios{% endblock %}

{% block body_navegacao %}
<h1>Clientes por bairro</h1>
<table class="table table-striped">
    <thead> 
        <tr>
            <th>Bairro</th>
            <th>Número de clientes</th>
        </tr>
    </thead>
    <tbody>
        {% for b in bairros %}
        <tr>
            <td>{{ b.0 }}</td>
            <td>{{ b.1 }}</td>
        </tr>
        {% endfor %}
    </tbody>
</table>
<h1>Sabores mais pedidos</h1>
<table class="table table-striped">
    <thead> 
        <tr>
            <th>Sabor</th>
            <th>Número de pizzas vendidas</th>
        </tr>
    </thead>
    <tbody>
        {% for s in sabores %}
        <tr>
            <td>{{ s.0 }}</td>
            <td>{{ s.1 }}</td>
        </tr>
        {% endfor %}
    </tbody>
</table>
{% endblock %}
